<template>
  <div class="content">
    <div class="title-box">
      <div class="title">动作：审计</div>
    </div>
    <div class="inner">
      <svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg">
        <!-- 定义多边形并填充粉色 -->
        <polygon points="0,60 200,60 320,0 240,60 400,60 400,260 0,260" fill="#ffffff" stroke="#333" stroke-width="1" />
        <line x1="0" y1="60" x2="200" y2="60" stroke="#333" stroke-width="1" />
        <line x1="200" y1="60" x2="320" y2="0" stroke="#333" stroke-width="1" />
        <line x1="320" y1="0" x2="240" y2="60" stroke="#333" stroke-width="1" />
        <line x1="240" y1="60" x2="400" y2="60" stroke="#333" stroke-width="1" />
        <line x1="400" y1="60" x2="400" y2="260" stroke="#333" stroke-width="2" />
        <line x1="400" y1="260" x2="0" y2="260" stroke="#333" stroke-width="2" />
        <line x1="0" y1="260" x2="0" y2="60" stroke="#333" stroke-width="2" />
      </svg>
      <div class="inner-text">{{ props.data?.text }}</div>
    </div>
  </div>
</template>
<script setup lang="ts">
const props = defineProps({
  data: {
    type: Object,
  },
});
console.log("props", props.data?.text);
</script>
<style scoped>

.content {
  position: relative;
  width: 440px;
  height: 338px;
  /* border: 1px solid #000; */
}

.inner {
  position: absolute;
  top: 60px;
  left: 10px;
  width: 400px;
  height: 260px;
}

.inner-text {
  position: absolute;
  top: 70px;
  left: 20px;
}

.title-box {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  right: 10px;
  top: 90px;
  width: 100px;
  height: 50px;
  /* margin: 50px; */
  background: #88c5fe;
  /*左上 右上 右下 左下*/
  border-radius: 50% / 50%;
  z-index: 1;
}

.title {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 95%;
  height: 95%;
  /* margin: 50px; */
  background: #37a6ff;
  /*左上 右上 右下 左下*/
  border-radius: 50% / 50%;
  z-index: 1;
  color: #fff;
  font-size: 12px;
}
</style>